﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCEntity.Sim.Admin.TreePermission
{
    /// <summary>
    /// 树形权限配置记录
    /// </summary>
    public class TreePermissionRecordEntity
    {
        /// <summary>
        /// 树形权限配置记录Id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long TreePermissionRecordId { get; set; }

        /// <summary>
        /// 树形权限配置Id
        /// </summary>
        public long TreePermissionConfigId { get; set; }

        /// <summary>
        /// 公司Id
        /// </summary>
        public int CompanyId { get; set; }

        /// <summary>
        /// 部门Id
        /// </summary>
        public int? DepartmentId { get; set; }

        /// <summary>
        /// 管理员Id
        /// </summary>
        public long? AdminId { get; set; }
        /// <summary>
        /// 员工组织映射记录Id
        /// </summary>
        public long? StaffOrganizationMappingRecordId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public long CreateAdminId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateAdminName { get; set; }

        /// <summary>
        /// 编辑人Id
        /// </summary>
        public long EditAdminId { get; set; }

        /// <summary>
        /// 编辑者
        /// </summary>
        public string EditAdminName { get; set; }

        /// <summary>
        /// 编辑时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
    }
}
